﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("logisticsService", function (httpService) {
        var methods = {
            gets: function (params) {
                return httpService.get("/logistics/gets", params);
            },
            get: function (params) {
                return httpService.get("/logistics/post", params);
            },
            getlist: function (params) {
                return httpService.get("/logistics/getlist", params);
            },
            update: function (params) {
                return httpService.post("/logistics/update", params);
            },
            finishdeclare: function (params) {
                return httpService.get("/logistics/finishdeclare", params);
            },
            startflight: function (params) {
                return httpService.get("/logistics/startflight", params);
            },
            save: function (params) {
                return httpService.post("/logistics/save", params);
            },
            delete: function (params) {
                return httpService.post("/logistics/del", params);
            },
            saveno: function (params) {
                return httpService.post("/logistics/saveno", params);
            },
            tidan: function (params) {
                return httpService.get("/logistics/tidan", params);
            },
            paylist: function () {
                return httpService.get("/logistics/paylist");
            },
            fillsingle: function (params) {
                return httpService.get("/logistics/fillsingle", params);
            },
            saveboard: function (params) {
               
                return httpService.post("/logistics/saveboard", params);
            },
            add: function (params) {

                return httpService.post("/logistics/add", params);
            },
            splitplate: function (params) {
               
                return httpService.get("/logistics/splitplate", params);
            },
            fillsplitplate: function (params) {
                return httpService.get("/logistics/fillsplitplate", params);
            },
            saveplate: function (params) {
                return httpService.post("/logistics/saveplate", params);
            },
            splitplatelist: function (params) {

                return httpService.get("/logistics/splitplatelist", params);
            }
        }
        return methods;
    });
});